home *** CD-ROM | disk | FTP | other *** search
- diff -r -u --new-file diff-2.0/cmp.c diff-20.st/cmp.c
- --- diff-2.0/cmp.c Sat Jul 11 08:58:06 1992
- +++ diff-20.st/cmp.c Fri Sep 18 20:59:22 1992
- @@ -75,6 +75,11 @@
- usage (reason)
- char *reason;
- {
- +#ifdef atarist
- + struct option *ptr;
- + int i;
- +#endif
- +
- if (reason != NULL)
- fprintf (stderr, "%s: %s\n", program_name, reason);
-
- @@ -82,6 +87,27 @@
- Usage: %s [-cls] [--print-chars] [--verbose] [--silent] [--quiet]\n\
- from-file [to-file]\n", program_name);
-
- +#ifdef atarist
- + ptr = &long_options[0];
- + i = 0;
- + fprintf (stderr, "Equivalent short and long options:\n");
- + while (ptr->name)
- + {
- + if (ptr->val > 0x20 && ptr->val < 0x7f)
- + {
- + fprintf (stderr, " %c<=>%-21.21s", (char)(ptr->val), ptr->name);
- + i++;
- + }
- + ptr++;
- + if (i == 3)
- + {
- + i = 0;
- + fputc ('\n', stderr);
- + }
- + }
- + fputc ('\n', stderr);
- +#endif
- +
- exit (2);
- }
-
- @@ -94,6 +120,10 @@
- struct stat stat_buf1, stat_buf2;
-
- program_name = argv[0];
- +
- +#ifdef atarist
- + _binmode (1);
- +#endif
-
- /* If an argument is omitted, default to the standard input. */
-
- diff -r -u --new-file diff-2.0/diff.c diff-20.st/diff.c
- --- diff-2.0/diff.c Thu Sep 17 16:14:48 1992
- +++ diff-20.st/diff.c Fri Sep 18 20:11:08 1992
- @@ -213,6 +213,10 @@
-
- program = argv[0];
-
- +#ifdef atarist
- + _binmode (1);
- +#endif
- +
- /* Do our initializations. */
- output_style = OUTPUT_NORMAL;
- always_text_flag = FALSE;
- @@ -557,6 +561,11 @@
- void
- usage ()
- {
- +#ifdef atarist
- + struct option *ptr;
- + int i;
- +#endif
- +
- fprintf (stderr, "Usage: %s [options] from-file to-file\n", program);
- fprintf (stderr, "Options:\n\
- [-abBcdefhHilnNpPqrstTuvwy] [-C lines] [-D symbol] [-F regexp]\n\
- @@ -574,6 +583,28 @@
- fprintf (stderr, "\
- [--ignore-all-space] [--side-by-side] [--unified[=lines]]\n\
- [--left-column] [--suppress-common-lines] [--sdiff-merge-assist]\n");
- +
- +#ifdef atarist
- + ptr = &longopts[0];
- + i = 0;
- + fprintf (stderr, "Equivalent short and long options:\n");
- + while (ptr->name)
- + {
- + if (ptr->val > 0x20 && ptr->val < 0x7f)
- + {
- + fprintf (stderr, " %c<=>%-21.21s", (char)(ptr->val), ptr->name);
- + i++;
- + }
- + ptr++;
- + if (i == 3)
- + {
- + i = 0;
- + fputc ('\n', stderr);
- + }
- + }
- + fputc ('\n', stderr);
- +#endif
- +
- exit (2);
- }
-
- diff -r -u --new-file diff-2.0/diff3.c diff-20.st/diff3.c
- --- diff-2.0/diff3.c Sun Sep 6 08:30:54 1992
- +++ diff-20.st/diff3.c Fri Sep 18 20:19:14 1992
- @@ -236,6 +236,10 @@
-
- argv0 = argv[0];
-
- +#ifdef atarist
- + _binmode (1);
- +#endif
- +
- while ((c = getopt_long (argc, argv, "aeimvx3EXL:", longopts, (int *) 0))
- != EOF)
- {
- @@ -371,6 +375,11 @@
- void
- usage ()
- {
- +#ifdef atarist
- + struct option *ptr;
- + int i;
- +#endif
- +
- fprintf (stderr, "\
- Usage: %s [options] my-file older-file your-file\n\
- Options:\n\
- @@ -378,6 +387,28 @@
- [--merge] [--show-overlap] [--overlap-only] [--easy-only]\n\
- [--label=my-label [--label=your-label]] [--version]\n\
- Only one of [exEX3] is allowed\n", argv0);
- +
- +#ifdef atarist
- + ptr = &longopts[0];
- + i = 0;
- + fprintf (stderr, "Equivalent short and long options:\n");
- + while (ptr->name)
- + {
- + if (ptr->val > 0x20 && ptr->val < 0x7f)
- + {
- + fprintf (stderr, " %c<=>%-21.21s", (char)(ptr->val), ptr->name);
- + i++;
- + }
- + ptr++;
- + if (i == 3)
- + {
- + i = 0;
- + fputc ('\n', stderr);
- + }
- + }
- + fputc ('\n', stderr);
- +#endif
- +
- exit (2);
- }
-
- diff -r -u --new-file diff-2.0/makefile.st diff-20.st/makefile.st
- --- diff-2.0/makefile.st
- +++ diff-20.st/makefile.st Tue Sep 22 21:13:04 1992
- @@ -0,0 +1,152 @@
- +# Generated automatically from Makefile.in by configure.
- +# Makefile for GNU DIFF
- +# Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
- +#
- +# This file is part of GNU DIFF.
- +#
- +# GNU DIFF is free software; you can redistribute it and/or modify
- +# it under the terms of the GNU General Public License as published by
- +# the Free Software Foundation; either version 2, or (at your option)
- +# any later version.
- +#
- +# GNU DIFF is distributed in the hope that it will be useful,
- +# but WITHOUT ANY WARRANTY; without even the implied warranty of
- +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- +# GNU General Public License for more details.
- +#
- +# You should have received a copy of the GNU General Public License
- +# along with GNU DIFF; see the file COPYING. If not, write to
- +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- +
- +#### Start of system configuration section. ####
- +
- +srcdir = .
- +VPATH = .
- +
- +CC = gcc -O
- +INSTALL = cp
- +INSTALL_PROGRAM = $(INSTALL)
- +INSTALL_DATA = $(INSTALL)
- +MAKEINFO = makeinfo
- +
- +# Things you might add to DEFS:
- +# -DSTDC_HEADERS If you have ANSI C headers and libraries.
- +# -DHAVE_UNISTD_H If you have unistd.h.
- +# -DUSG If you have System V/ANSI C string and
- +# memory functions and headers, fcntl.h, and ndir.h.
- +# -DDIRENT If you have dirent.h.
- +# -DSYSNDIR Old Xenix systems (selects sys/ndir.h).
- +# -DHAVE_VFORK_H If you have vfork and it needs vfork.h.
- +# -DHAVE_DUP2 If you have dup2 system call.
- +# -DHAVE_WAITPID If you have waitpid system call.
- +# -DHAVE_ST_BLKSIZE If your struct stat has an st_blksize member.
- +# -DHAVE_STRERROR If you have strerror function.
- +# -DHAVE_ALLOCA_H If you have a working alloca.h.
- +
- +DEFS = -DDIRENT=1 -DHAVE_UNISTD_H=1 -DUSG=1 -DHAVE_DUP2=1 -DHAVE_MEMCHR=1 -Dvfork=fork -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS -DHAVE_ALLOCA_H
- +
- +CFLAGS = -g
- +LDFLAGS = -g -s
- +LIBS =
- +
- +# Some System V machines do not come with libPW.
- +# If this is true for you, use the GNU alloca.o here.
- +ALLOCA =
- +
- +prefix = /dev/e/gnu
- +exec_prefix = $(prefix)
- +
- +# Prefix for each installed program, normally empty or `g'.
- +binprefix =
- +
- +bindir = $(exec_prefix)/bin
- +
- +infodir = $(prefix)/info
- +
- +#### End of system configuration section. ####
- +
- +#SHELL = /dev/D/mint/bin/sh.ttp
- +
- +# The source files for all of the programs.
- +srcs=diff.c analyze.c io.c context.c ed.c normal.c ifdef.c util.c dir.c \
- + version.c diff.h regex.c regex.h side.c system.h limits.h \
- + diff3.c sdiff.c cmp.c error.c xmalloc.c getopt.c getopt1.c getopt.h \
- + fnmatch.c fnmatch.h alloca.c
- +# Object files for diff only.
- +objs=diff.o analyze.o io.o context.o \
- + ed.o normal.o util.o dir.o fnmatch.o \
- + regex.o side.o ifdef.o version.o \
- + getopt.o getopt1.o $(ALLOCA)
- +distfiles = $(srcs) README INSTALL NEWS diagmeet.note Makefile.in configure \
- + configure.in COPYING ChangeLog diff.texi diff.info* texinfo.tex
- +
- +all: diff.ttp diff3.ttp sdiff.ttp cmp.ttp diff.info
- +
- +.c.o:
- + $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) $<
- +
- +diff.ttp: $(objs)
- + $(CC) -o $@ $(LDFLAGS) $(objs) $(LIBS)
- +
- +diff3.ttp: diff3.o getopt.o getopt1.o version.o $(ALLOCA)
- + $(CC) -o $@ $(LDFLAGS) diff3.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
- +
- +sdiff.ttp: sdiff.o getopt.o getopt1.o version.o $(ALLOCA)
- + $(CC) -o $@ $(LDFLAGS) sdiff.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
- +
- +cmp.ttp: cmp.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA)
- + $(CC) -o $@ $(LDFLAGS) cmp.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA) $(LIBS)
- +
- +diff.info: diff.texi
- + $(MAKEINFO) $(srcdir)/diff.texi
- +
- +$(objs): diff.h system.h
- +cmp.o diff3.o sdiff.o: system.h
- +context.o diff.o regex.o: regex.h
- +cmp.o diff.o diff3.o sdiff.o getopt.o getopt1.o: getopt.h
- +diff.o fnmatch.o: fnmatch.h
- +
- +diff3.o: diff3.c
- + $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -DDIFF_PROGRAM=@"diff.ttp@" $(srcdir)/diff3.c
- +
- +sdiff.o: sdiff.c
- + $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -DDIFF_PROGRAM=@"diff.ttp@" $(srcdir)/sdiff.c
- +
- +TAGS: $(srcs)
- + etags $(srcs)
- +
- +clean:
- + rm -f *.o diff.ttp diff3.ttp sdiff.ttp cmp.ttp core
- +
- +mostlyclean: clean
- +
- +distclean: clean
- + rm -f Makefile config.status
- +
- +realclean: distclean
- + rm -f TAGS *.info*
- +
- +install: all
- + for p in diff.ttp diff3.ttp sdiff.ttp cmp.ttp; \
- + do $(INSTALL_PROGRAM) $$p $(bindir)/$(binprefix)$$p; done
- +# cd $(srcdir); for f in diff.info*; \
- +# do $(INSTALL_DATA) $$f $(infodir)/$$f; done
- +
- +uninstall: all
- + for p in diff.ttp diff3.ttp sdiff.ttp cmp.ttp; \
- + do rm -f $(bindir)/$(binprefix)$$p; done
- +# rm -f $(infodir)/diff.info*
- +
- +dist: $(distfiles)
- + echo diff-`sed -e '/version_string/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q version.c` > .fname
- + rm -rf `cat .fname`
- + mkdir `cat .fname`
- + ln $(distfiles) `cat .fname`
- + for file in $(distfiles); do \
- + if [ ! -r `cat .fname`/$$file ]; then cp -p $$file `cat .fname`; fi \
- + done
- + tar chZf `cat .fname`.tar.Z `cat .fname`
- + rm -rf `cat .fname` .fname
- +
- +# Prevent GNU make v3 from overflowing arg limit on SysV.
- +#.NOEXPORT:
- diff -r -u --new-file diff-2.0/sdiff.c diff-20.st/sdiff.c
- --- diff-2.0/sdiff.c Thu Sep 17 16:14:38 1992
- +++ diff-20.st/sdiff.c Fri Sep 18 20:50:30 1992
- @@ -97,6 +97,11 @@
- static void
- usage ()
- {
- +#ifdef atarist
- + struct option *ptr;
- + int i;
- +#endif
- +
- fprintf (stderr, "Usage: %s [options] from-file to-file\n", prog);
- fprintf (stderr, "Options:\n\
- [-abBdHilstv] [-I regexp] [-o outfile] [-w columns]\n\
- @@ -105,6 +110,28 @@
- [--ignore-space-change] [--ignore-blank-lines] [--ignore-all-space]\n\
- [--suppress-common-lines] [--left-column] [--output=outfile]\n\
- [--version] [--width=columns]\n");
- +
- +#ifdef atarist
- + ptr = &longopts[0];
- + i = 0;
- + fprintf (stderr, "Equivalent short and long options:\n");
- + while (ptr->name)
- + {
- + if (ptr->val > 0x20 && ptr->val < 0x7f)
- + {
- + fprintf (stderr, " %c<=>%-21.21s", (char)(ptr->val), ptr->name);
- + i++;
- + }
- + ptr++;
- + if (i == 3)
- + {
- + i = 0;
- + fputc ('\n', stderr);
- + }
- + }
- + fputc ('\n', stderr);
- +#endif
- +
- exit (2);
- }
-
- @@ -393,6 +420,10 @@
- int version_requested = 0;
- char *editor = getenv ("EDITOR");
- char *differ = getenv ("DIFF");
- +
- +#ifdef atarist
- + _binmode (1);
- +#endif
-
- prog = argv[0];
- if (editor)
- diff -r -u --new-file diff-2.0/version.c diff-20.st/version.c
- --- diff-2.0/version.c Fri Sep 18 07:27:22 1992
- +++ diff-20.st/version.c Fri Sep 18 20:08:26 1992
- @@ -1,3 +1,7 @@
- /* Version number of GNU diff. */
-
- +#ifdef atarist
- +char *version_string = "2.0 for atariST";
- +#else
- char *version_string = "2.0";
- +#endif
-